﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using xiaodingmarket_Domain_core.Models;

namespace xiaodingmarket_Domain.Models
{
    [ComplexType]
    public class Address: ValueObject<Address>
    {
        public Address()
        {

        }
        public Address(bool isSchool, string street, string city, string district, string zip, string remark, string provinces)
        {
            this.isSchool = isSchool;
            Street = street;
            City = city;
            District = district;
            Zip = zip;
            Remark = remark;
            Provinces = provinces;
        }

        /// <summary>
        /// 校内校外
        /// </summary>
        public bool isSchool { get; set; }
        /// <summary>
        /// 街道
        /// </summary>
        public string Street { get; set; }
        /// <summary>
        /// 城市
        /// </summary>
        public string City{ get; set; }
        /// <summary>
        /// 区，县
        /// </summary>
        public string District { get; set; }
        /// <summary>
        /// （邮编）
        /// </summary>
        public string Zip { get; set; }
        /// <summary>
        /// （备注）
        /// </summary>
        public string Remark { get; set; }
 
        /// <summary>
        /// 省
        /// </summary>
        public string Provinces { get; set; }

        protected override bool EqualsCore(Address other)
        {
            throw new NotImplementedException();
        }

        protected override int GetHashCodeCore()
        {
            throw new NotImplementedException();
        }
    }
}
